// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

.love-beatmap-dialog {
  .page-width-default();
  .default-box-shadow();
  padding-top: 20px;
  padding-bottom: $padding-top;
  border-radius: @border-radius-large;
  background-color: hsl(var(--hsl-b5));
  margin: 10px;
  max-height: 80vh;
  display: grid;
  grid-template-rows: auto 1fr auto;

  @media @desktop {
    width: auto;
    margin: @grid-gutter-width;
  }

  &__diff-list {
    list-style: none;
    padding: 0;
  }

  &__diff-list-item {
    margin-bottom: 5px;
  }

  &__diff-mode {
    position: relative;

    @media @desktop {
      overflow-y: auto;
    }
  }

  &__diff-mode-title {
    padding-bottom: 5px;
    margin-bottom: 5px;
    border-bottom: 1px solid #fff;
    position: sticky;
    top: 0;
    background-color: hsl(var(--hsl-b5));
  }

  &__diff-mode-title-label {
    font-size: @font-size--title-small;
  }

  &__row {
    .default-gutter-v2();

    &--content {
      font-size: @font-size--normal;
      display: grid;
      column-gap: 10px;
      grid-template-columns: 1fr;
      overflow-y: auto;

      @media @desktop {
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        overflow-y: hidden;
      }
    }

    &--footer {
      display: flex;
      column-gap: 5px;
      justify-content: flex-end;
      margin-top: 20px;
    }

    &--title {
      font-size: @font-size--title-small-3;
      margin-bottom: 20px;
    }
  }

  &__switch {
    display: flex;
    align-items: baseline;
    text-transform: none;
    font-size: inherit;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
  }
}
